package com.tian.clothing.module;

import android.content.Intent;

import com.tian.clothing.R;
import com.tian.clothing.base.BaseActivity;
import com.tian.clothing.module.login.LoginActivity;

/**
 * @ClassName: WelcomeActivity
 * @Description: 欢迎界面
 * @author: dreamfutureba@gmail.com
 * @date: 2013年11月25日 下午2:24:57
 */
public class WelcomeActivity extends BaseActivity implements Runnable {
	private static final String TAG = WelcomeActivity.class.getSimpleName();

	@Override
	protected void installViews() {
		setContentView(R.layout.activity_welcome);
		// 启动一个线程
		new Thread(this).start();
		showProgressDialog("启动中...");
	}

	@Override
	protected void registerEvents() {
		// TODO Auto-generated method stub

	}

	@Override
	public void run() {
		// 一秒后跳转到登录界面
		try {
			Thread.sleep(3000);
			startActivity(new Intent(WelcomeActivity.this, LoginActivity.class));
			finish();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
